package cn.xhy.module.purchase.dal.mysql.materialdemand;

import java.util.*;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.xhy.module.purchase.dal.dataobject.materialdemand.OfficeOrderDO;
import org.apache.ibatis.annotations.Mapper;

/**
 * 办公申请单 Mapper
 *
 * @author xhyL
 */
@Mapper
public interface OfficeOrderMapper extends BaseMapperX<OfficeOrderDO> {

    default List<OfficeOrderDO> selectListByDocumentNumber(String documentNumber) {
        return selectList(OfficeOrderDO::getDocumentNumber, documentNumber);
    }

    default int deleteByDocumentNumber(String documentNumber) {
        return delete(OfficeOrderDO::getDocumentNumber, documentNumber);
    }

}